package org.jeecg.modules.room.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.jeecg.modules.room.entity.RoomBookInfoMx;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.room.vo.RoomStatusVo;

/**
 * @Description: 预订单明细信息
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
public interface RoomBookInfoMxMapper extends BaseMapper<RoomBookInfoMx> {
	/**
	 * 通过主表id删除子表数据
	 *
	 * @param mainId 主表id
	 * @return boolean
	 */
	public boolean deleteByMainId(@Param("mainId") String mainId);

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<RoomBookInfoMx>
	 */
	public IPage<RoomBookInfoMx> selectByMainId(IPage<RoomBookInfoMx> page,@Param("mainId") String mainId);

}
